package me.frank.security.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @Author Frank Wang
 * @Description:
 * @Date 2018/12/11 13:18
 */
@Data
@ApiModel(value = "用户实体")
@TableName("sys_user")
public class User{

    @ApiModelProperty(hidden = true)
    @TableId(value = "user_id",type = IdType.AUTO)
    private Integer userId;

    @ApiModelProperty(value = "用户名")
    @TableField("username")
    private String username;

    @ApiModelProperty(value = "密码")
    @TableField("password")
    private String password;


    @ApiModelProperty(value = "头像")
    @TableField("avatar")
    private String avatar;

    @ApiModelProperty(value = "昵称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "手机号")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "性别(0=男性,1=女性,2=未知(保密) )")
    @TableField("sex")
    private Integer sex;

    @ApiModelProperty(hidden = true)
    @TableField("locked")
    private Boolean locked;

    @ApiModelProperty(hidden = true)
    @TableField("status")
    private Integer status;

    @ApiModelProperty(hidden = true)
    @TableField("admin")
    private String admin;

    @ApiModelProperty(hidden = true)
    @TableField("logined")
    private Integer logined;

    @ApiModelProperty(hidden = true)
    @TableField("last_login_ip")
    private String lastLoginIp;

    @ApiModelProperty(hidden = true)
    @TableField("last_login_time")
    private Date lastLoginTime;

    @ApiModelProperty(hidden = true)
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty(hidden = true)
    @TableField("update_time")
    private Date  updateTime;

    @ApiModelProperty(hidden = true)
    @TableField("create_by")
    private String createBy;


}
